package com.acme.task4;

public class Task4Arrays {

	final static String three = "Number of 3: ";
	final static String seven = "Number of 7: ";
	final static String nine = "Number of 9: ";

	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 3;
		array[4] = 9;
		array[5] = 3;
		array[6] = 9;
		array[7] = 3;
		array[8] = 7;
		array[9] = 9;

		int quantity3 = 0;
		int quantity7 = 0;
		int quantity9 = 0;

		for (int i : array) {
			if (i == 3) {
				quantity3++;
			} else if (i == 7) {
				quantity7++;
			} else {
				quantity9++;
			}
		}

		System.out.println(three + quantity3);
		System.out.println(seven + quantity7);
		System.out.println(nine + quantity9);
	}
}
